import java.io.File;
import java.io.IOException;

public class Test01 {
    public static void main(String[] args) throws IOException {
        File file=new File("Demon\\aaa");
        file.mkdirs();
        File src=new File(file,"a.txt");
        Boolean b=src.createNewFile();
        if(b){
            System.out.println("创建成功");
        }
        else{
            System.out.println("创建失败");
        }

    }
}
